-- GENERATED SPELL FOR [Corrupted Mottled Boar] --


function spell0_3225(pUnit, Event) --@Boar Charge,Self--
pUnit:FullCastSpellOnTarget(3385,pUnit)
pUnit:RegisterEvent('Sorts_3225', 4000, 1)
end

function spell1_3225(pUnit, Event) --@Corrupted Intellect,Self--
pUnit:FullCastSpellOnTarget(6818,pUnit)
pUnit:RegisterEvent('Sorts_3225', 4291, 1)
end

function Sorts_3225(pUnit, Event)
local choix_sorts_3225 = math.random(0, 1)
if choix_sorts_3225 == 0 then
pUnit:RegisterEvent('spell0_3225', 1, 1)
end
if choix_sorts_3225 == 1 then
pUnit:RegisterEvent('spell1_3225', 1, 1)
end
end

function mob3225_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3225', math.random(1500, 3000), 1)
end

function mob3225_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3225_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3225_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3225, 1, 'mob3225_Action')
RegisterUnitEvent(3225, 2, 'mob3225_Leave')
RegisterUnitEvent(3225, 3, 'mob3225_Kill')
RegisterUnitEvent(3225, 4, 'mob3225_Die')
